package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 抽奖活动表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_active")
public class Active implements Serializable {
    /**
     * 活动ID
     */
    @TableId(value = "active_id", type = IdType.AUTO)
    private Integer activeId;

    /**
     * 活动名称
     */
    @TableField(value = "active_name")
    private String activeName;

    @TableField(value = "pay_score")
    private Integer payScore;

    /**
     * 开始时间
     */
    @TableField(value = "begin_time")
    private String beginTime;

    /**
     * 截止时间
     */
    @TableField(value = "end_time")
    private String endTime;

    /**
     * 参与用户;参与用户：0全部1部分
     */
    @TableField(value = "user_flag")
    private Integer userFlag;

    /**
     * 活动免费抽奖次数
     */
    @TableField(value = "free_times")
    private Integer freeTimes;

    @TableField(value = "win_type")
    private Integer winType;

    /**
     * 中奖名单;中奖名单：0公开1不公开
     */
    @TableField(value = "win_flag")
    private Integer winFlag;

    /**
     * 中奖记录;中奖记录：0公开1不公开
     */
    @TableField(value = "win_record")
    private Integer winRecord;

    /**
     * 活动状态;活动状态：0开启1停止
     */
    @TableField(value = "active_status")
    private Integer activeStatus;

    /**
     * 活动规则
     */
    @TableField(value = "active_content")
    private String activeContent;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private String joinUser;
    @TableField(exist = false)
    private String winUser;
    @TableField(exist = false)
    private String winList;
    @TableField(exist = false)
    private String statusName;
    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private List<String> getTimeList;
    private static final long serialVersionUID = 1L;
}